package com.xs.designpattern;

import lombok.extern.slf4j.Slf4j;

/**
 * @author xs
 */
@Slf4j
public class FlyingEnchantment implements Enchantment{
    @Override
    public void onActivate() {
        log.info("该物品开始发出微弱的光芒...");
    }

    @Override
    public void apply() {
        log.info("物品飞行并攻击敌人最终回到主人手中...");
    }

    @Override
    public void onDeactivate() {
        log.info("该物品的光芒逐渐消失...");
    }
}
